#!/bin/bash

# todo: replace this with a groovy script, for being portable across platforms

EDTF_PROJECT_DIR="$1"
EDTF_RELEASE_DIR="$2"

rm -rf $EDTF_RELEASE_DIR
mkdir -p $EDTF_RELEASE_DIR/lib
mkdir $EDTF_RELEASE_DIR/xtemp

cp $EDTF_PROJECT_DIR/COPYING $EDTF_RELEASE_DIR
cp $EDTF_PROJECT_DIR/dist/edtf.jar $EDTF_RELEASE_DIR
cp -r $EDTF_PROJECT_DIR/package/* $EDTF_RELEASE_DIR
cp $EDTF_PROJECT_DIR/src/org/edtf/engine/xtemp/translator/xtemp_translator.xsl $EDTF_RELEASE_DIR/xtemp
cp $EDTF_PROJECT_DIR/lib/saxon.jar $EDTF_RELEASE_DIR/lib/saxon.jar
